﻿@model Senac.Escola.Projeto.Models.Pergunta

@{
    ViewBag.Title = "Create";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>DESCREVA A PERGUNTA</legend>

        <div class="editor-label">
            @Html.Label("Pergunta")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DescricaoPergunta)
            @Html.ValidationMessageFor(model => model.DescricaoPergunta)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AtividadeID, "Atividade")
        </div>
        <div class="editor-field">
            @Html.DropDownList("AtividadeID", String.Empty)
            @Html.ValidationMessageFor(model => model.AtividadeID)
        </div>
        <div class="row">
            <br/><br/>
            <div>
                <button type="submit" class="btn btn-primary span2">
                    <i class="icon-user icon-white"></i>Salvar
                </button>
            </div>
            <div class=" span2 btn btn-warning">
                @Html.ActionLink("Voltar", "Index")
            </div>
            <div class=" span2 btn btn-warning">
              @*  @Html.ActionLink("Finalizar", "ListarRespostas","Resposta", new { id = Model.PerguntaID })*@
            </div>
        </div>
    </fieldset>
}


